package com.mxf.code.service.impl;

import com.mxf.code.annotation.DataSource;
import com.mxf.code.entity.User02;
import com.mxf.code.mapper.UserMapper02;
import com.mxf.code.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author mxf
 * @version 1.0
 * @description: TODO
 * @date 2023/5/9
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper02 userMapper02;

    @Override
    @DataSource("Dynamic03")
    public List<User02> listAllUser() {
        return userMapper02.selectList02();
    }

    @Override
    @DataSource("Dynamic02")
    public List<User02> listAllUser02() {
        return userMapper02.selectList02();
    }

    @Override
    public List<User02> listAllUser03() {
        return userMapper02.selectList02();
    }
}
